/******************************************************************************
 * FileName:    gwin_general_clock.h
 * Desc:        通用时钟
 *                  判断时钟是否经过指定时间
 *
 * Author:      Lin
 * Notes:
 *
 ******************************************************************************/

#ifndef __GWIN_GENERAL_CLOCK_H__
#define __GWIN_GENERAL_CLOCK_H__


/*-------------------------- Includes ---------------------------------------*/
#include "stdint.h"


/*-------------------------- Macro Definitions ------------------------------*/

/*-------------------------- Type Declarations ------------------------------*/

/*-------------------------- Global Variables -------------------------------*/

/*-------------------------- Local Variables --------------------------------*/

/*-------------------------- Functions Declarations -------------------------*/

/*-------------------------- Functions Definitions --------------------------*/
uint32_t gwin_get_general_clock(void);
uint8_t gwin_get_general_clock_is_start(const uint32_t *clock);
void gwin_save_general_clock(uint32_t *clock);
void gwin_clear_general_clock(uint32_t *clock);
uint8_t gwin_pass_general_clock(uint32_t clock, uint32_t pass_time_ms);


#endif // __GWIN_GENERAL_CLOCK_H__


/*-------------------------- END OF FILE ------------------------------------*/

